#include"ThreadPool.hpp"
void execute(int n)
{
    LOG(LogLevel::INFO)<<"执行任务:"<<n;
}
using func_t=std::function<void()>;
int main()
{
    auto thread_pool=ThreadPool<func_t>::GetInstance();
    for(int i=0;i<100;++i)
    {
        func_t func=std::bind(execute,i);
        thread_pool->Enqueue(func);
    }
    thread_pool->stop();
    return 0;
}